package com.lingjtx.common.other.model.sms;


import com.lingjtx.common.core.constant.Const;
import com.lingjtx.common.core.constant.SmsTemplate;

public class SmsRequest {

    // ——————————————————————————————公共请求参数————————————————————
    private String Action = "SendSms";
    private String AccessKeyId = Const.ALIYUN_ACCESSKEY;
    private String SignatureMethod = "HMAC-SHA1";
    private String SignatureNonce;
    private String SignatureVersion = "1.0";
    private String Timestamp;
    private String Version = "2017-05-25";
    private String Format = "json";

    // ——————————————————————用户设置参数——————————————————————————————
    private String SignName;

    // 支持对多个手机号码发送短信，手机号码之间以英文逗号（,）分隔
    private String PhoneNumbers;

    // 短信模板ID
    private String TemplateCode;

    // {"code":"1111"}
    private String TemplateParam;

    private String Signature = null;

    public String getAction() {
        return Action;
    }

    public void setAction(String action) {
        Action = action;
    }

    public String getAccessKeyId() {
        return AccessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        AccessKeyId = accessKeyId;
    }

    public String getSignatureMethod() {
        return SignatureMethod;
    }

    public void setSignatureMethod(String signatureMethod) {
        SignatureMethod = signatureMethod;
    }

    public String getSignatureNonce() {
        return SignatureNonce;
    }

    public void setSignatureNonce(String signatureNonce) {
        SignatureNonce = signatureNonce;
    }

    public String getSignatureVersion() {
        return SignatureVersion;
    }

    public void setSignatureVersion(String signatureVersion) {
        SignatureVersion = signatureVersion;
    }

    public String getTimestamp() {
        return Timestamp;
    }

    public void setTimestamp(String timestamp) {
        Timestamp = timestamp;
    }

    public String getVersion() {
        return Version;
    }

    public void setVersion(String version) {
        Version = version;
    }

    public String getFormat() {
        return Format;
    }

    public void setFormat(String format) {
        Format = format;
    }

    public String getSignName() {
        return SignName;
    }

    public void setSignName(String signName) {
        SignName = signName;
    }

    public String getPhoneNumbers() {
        return PhoneNumbers;
    }

    public void setPhoneNumbers(String phoneNumbers) {
        PhoneNumbers = phoneNumbers;
    }

    public String getTemplateCode() {
        return TemplateCode;
    }

    public void setTemplateCode(String templateCode) {
        TemplateCode = templateCode;
    }

    public String getTemplateParam() {
        return TemplateParam;
    }

    public void setTemplateParam(String templateParam) {
        TemplateParam = templateParam;
    }

    public String getSignature() {
        return Signature;
    }

    public void setSignature(String signature) {
        Signature = signature;
    }

    public void setSmsTemplate(SmsTemplate smsTemplate) {
        this.SignName = smsTemplate.getSignName();
        this.TemplateCode = smsTemplate.getTemplateCode();
    }
}
